import axios from "./request";

interface ILogin{
    account:string,
    password:string
}
export const loginApi=(data:ILogin)=>{
    return axios.post('/login',data)
}

export const articleLiseApi=()=>{
    return axios.get('/article/list')
}


export const articleDetailApi=(id:number)=>{
    return axios.get(`/article/${id}`)
}